const os = require("os");

const getIP = function () {
  const { WLAN } = os.networkInterfaces();
  const IPv4 = WLAN.find(v => v.family === "IPv4");
  return IPv4;
};

export default getIP;
